package co.fitstart.mobile.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.demo2do.core.service.impl.GenericServiceImpl;
import co.fitstart.entity.order.MoyuAddress;
import co.fitstart.mobile.service.MoyuAddressService;

@Service("moyuAddressService")
public class MoyuAddressServiceImpl extends GenericServiceImpl<MoyuAddress> implements MoyuAddressService {
    
    /*
     * (non-Javadoc)
     * @see co.fitstart.mobile.service.MoyuAddressService#list(java.lang.String)
     */
    @SuppressWarnings("unchecked")
    public List<MoyuAddress> list(String openid) {
        return genericDaoSupport.searchForList("FROM MoyuAddress WHERE disabled = false AND openid = :openid", "openid", openid);
    }
    
}
